package com.taptech.doufu.bean;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.util.List;

/**
 * Created by zhangyongcun on 16/8/9.
 */
public class MySpeakerInfo {


    public static MySpeakerInfo getMySpeakerInfo (String jsonStr) {
        Gson gson = new GsonBuilder().create();
        return gson.fromJson(jsonStr, MySpeakerInfo.class);
    }


    /**
     * user_id : 8888895
     * expires_date : 2017-08-09 11:50:56
     * bugles_num : 12
     */

    private UserBean user;
    /**
     * id : 1
     * name : 520表白
     * image : http://imgold2.doufu.la/doufu/img/medal/horn1.png
     * animation_image : http://imgold2.doufu.la/doufu/img/medal/horn1.png
     * coins : 520
     * normal_color : {"day_color":"000000","night_color":"898989"}
     * highlighted_color : {"day_color":"eaa000","night_color":"8e7338"}
     * desc : 1.每个小喇叭消耗520豆币，发布小喇叭成功后，会显示在小说和漫画首页，文字15字以内；
     2.每条小喇叭可以@一个好友，小喇叭发出后，被@的好友会收到推送和通知；
     3.充会员赠送小喇叭（充1个月会员=送1个小喇叭）；
     4.如会员过期，小喇叭会自动清零，请及时使用；
     5.现有会员也拥有小喇叭发布次数。
     */

    private List<BuglesBean> bugles;

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public List<BuglesBean> getBugles() {
        return bugles;
    }

    public void setBugles(List<BuglesBean> bugles) {
        this.bugles = bugles;
    }

    public static class UserBean {
        private int user_id;
        private String expires_date;
        private int bugles_num;
        private String tip1;
        private String tip2;

        public String getTip1() {
            return tip1;
        }

        public void setTip1(String tip1) {
            this.tip1 = tip1;
        }

        public String getTip2() {
            return tip2;
        }

        public void setTip2(String tip2) {
            this.tip2 = tip2;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public String getExpires_date() {
            return expires_date;
        }

        public void setExpires_date(String expires_date) {
            this.expires_date = expires_date;
        }

        public int getBugles_num() {
            return bugles_num;
        }

        public void setBugles_num(int bugles_num) {
            this.bugles_num = bugles_num;
        }
    }

    public static class BuglesBean {
        private int id;
        private String name;
        private String image;
        private String animation_image;
        private int coins;
        /**
         * day_color : 000000
         * night_color : 898989
         */

        private NormalColorBean normal_color;
        /**
         * day_color : eaa000
         * night_color : 8e7338
         */

        private HighlightedColorBean highlighted_color;
        private String desc;
        private String place_holder;

        public String getPlace_holder() {
            return place_holder;
        }

        public void setPlace_holder(String place_holder) {
            this.place_holder = place_holder;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getAnimation_image() {
            return animation_image;
        }

        public void setAnimation_image(String animation_image) {
            this.animation_image = animation_image;
        }

        public int getCoins() {
            return coins;
        }

        public void setCoins(int coins) {
            this.coins = coins;
        }

        public NormalColorBean getNormal_color() {
            return normal_color;
        }

        public void setNormal_color(NormalColorBean normal_color) {
            this.normal_color = normal_color;
        }

        public HighlightedColorBean getHighlighted_color() {
            return highlighted_color;
        }

        public void setHighlighted_color(HighlightedColorBean highlighted_color) {
            this.highlighted_color = highlighted_color;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public static class NormalColorBean {
            private String day_color;
            private String night_color;

            public String getDay_color() {
                return day_color;
            }

            public void setDay_color(String day_color) {
                this.day_color = day_color;
            }

            public String getNight_color() {
                return night_color;
            }

            public void setNight_color(String night_color) {
                this.night_color = night_color;
            }
        }

        public static class HighlightedColorBean {
            private String day_color;
            private String night_color;

            public String getDay_color() {
                return day_color;
            }

            public void setDay_color(String day_color) {
                this.day_color = day_color;
            }

            public String getNight_color() {
                return night_color;
            }

            public void setNight_color(String night_color) {
                this.night_color = night_color;
            }
        }
    }
}
